package com.sky.mapper.user;

import com.sky.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 批量插入订单细节
     * @param detailList
     */
    void insertBatch(List<OrderDetail> detailList);

    @Select("select * from sky_take_out_new.order_detail where order_id=#{orderId}")
    List<OrderDetail> getByOrderId(Long orderId);



}
